package cn.dnui_lf_705.dnui_16110100705.iface;


import cn.dnui_lf_705.dnui_16110100705.listener.OnRetrofitListener;

public interface UserIface {
    //一个接口 声明了跟登录和注册有关的方法
    void login(String username, String userpass, OnRetrofitListener listener);

    void register(String username, String userpass, String mobilenum, String address, String comment, OnRetrofitListener listener);

    void getAllUserCollection(String user_id, int flag, OnRetrofitListener listener);

    void getUserById(String user_id, OnRetrofitListener listener);

    void updateUserById(String user_id, String username, String userpass, String mobilenum, String address, OnRetrofitListener listener);

    void getAllOrdersByUser(String user_id, OnRetrofitListener listener);

    void getAllCommentsByUser(String user_id, OnRetrofitListener listener);

    void updateComment(int order_id, String content, OnRetrofitListener listener);

    void deleteComment(int order_id, OnRetrofitListener listener);

    void insertComment(String item_id, String content, OnRetrofitListener listener);
}
